/**
 * This file is part of Lineage II Client Data Parser.
 * 
 * Lineage II Client Data Parser is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * Lineage II Client Data Parser is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with Lineage II Client Data Parser.  If not, see <http://www.gnu.org/licenses/>.
 */
package net.l2emuproject.entity.base;

/**
 * An entity that doesn't need any type of analysis.
 * @author Savormix
 */
public abstract class SimpleEntity extends DefaultEntity
{
	private final int		id;
	private final String	name;

	/**
	 * Creates a simple entity.
	 * @param id Entity ID
	 * @param name Name/Textual representation of this entity
	 */
	public SimpleEntity(int id, String name)
	{
		this.id = id;
		this.name = name;
	}

	/**
	 * @return the entity ID
	 */
	public final int getId()
	{
		return id;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString()
	{
		return name;
	}

	// Analysis cannot yield any results

	/* (non-Javadoc)
	 * @see com.l2cdp.entity.base.IAnalysis#deterministicAnalysis()
	 */
	@Override
	public final void deterministicAnalysis()
	{
	}

	/* (non-Javadoc)
	 * @see com.l2cdp.entity.base.IAnalysis#experimentalAnalysis()
	 */
	@Override
	public final void experimentalAnalysis()
	{
	}
}
